package xkp.lesson1;

public class A {
	private int v = 222;
	private int num;
	
	
	public boolean guess() {
		if(num > v) {
			System.out.println("猜的值偏大");
			return false;
		}else if( num < v) {
			System.out.println("猜的值偏小");
			return false;
		}else {
			System.out.println("猜对了");
			return true;
		}
	}
	
	public int getV() {
		return v;
	}
	public void setV(int v) {
		this.v = v;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	
	
	
	
	

}
